﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalaSoft.MvvmLight;
using System.Collections.ObjectModel;
using MVVMMaker.Model;
using ViewModelClass = MVVMMaker.Model.ViewModel;

namespace MVVMMaker.ViewModel
{
    public class ViewModelManagerViewModel : ViewModelBase
    {
        // Fields...
        private ViewModelClass _ViewModel;

        public ViewModelClass ViewModel
        {
            get { return _ViewModel; }
            set { _ViewModel = value; RaisePropertyChanged("ViewModel"); }
        }

        public ViewModelManagerViewModel()
        {
            ViewModel = new ViewModelClass() { Properties = new ObservableCollection<Property>() };
            for (int i = 0; i < 10; i++)
            {
                ViewModel.Properties.Add(new Model.Property() { Name = "Property N* " + i, Type = "string", NotifyOnChange = Convert.ToBoolean(ViewModel.Properties.Count() % 2) });
            }
        }
    }
}
